package pong.ui.element;

import java.awt.Color;
import java.awt.Graphics;

@SuppressWarnings("serial")
public class PongBall extends PongElement {
	
	private static final int DEFAULT_BALL_SIZE = 20;

	@Override
	public void draw(Graphics g) {
		g.fillOval((int) position.getX(), (int) position.getY(), DEFAULT_BALL_SIZE, DEFAULT_BALL_SIZE);
		g.setColor(Color.YELLOW);
	}
}
